﻿using System;
using System.Web;
using JUtil;

/// <summary>
/// HttpModule01 的摘要描述
/// </summary>
public class HttpModule02 : IHttpModule
{
    #region IHttpModule members

    public void Dispose()
    {
        Log.D("Dispose");
    }

    public void Init(HttpApplication context)
    {
        /// --------------------------------------------------------------------------------
        // 發生於 ASP.NET 回應要求時，做為 HTTP 管線的執行鏈結裡的第一個事件
        context.BeginRequest += new EventHandler(context_BeginRequest);
    }

    void context_BeginRequest(object sender, EventArgs e)
    {
        Log.E("I am HttpModule02 BeginRequest");
    }

    #endregion

    
}
